﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddCategory.ascx.cs" Inherits="Admin_Category_AddCategory" %>
<%@ Register Assembly="GroupDropDownList" Namespace="GroupDropDownList" TagPrefix="cc1" %>

<asp:HiddenField runat="server" ID="hidLang" Value="vi-VN" />
<asp:HiddenField runat="server" ID = "hidCatType" />
<asp:HiddenField runat="server" ID = "hidCatId" />
<asp:HiddenField runat="server" ID = "hidCatInfo" />


<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" Display="None"></asp:CustomValidator>
<h2><asp:Label runat="server" ID = "lblTitle" ></asp:Label></h2>
<table>
    <tr>
        <td>Danh mục cha:</td>
        <td>
         <cc1:GroupDropDownList ID="ddlParent" runat="server" Width="200px" AppendDataBoundItems="true">
            
            </cc1:GroupDropDownList>
       </td>
    </tr>
     <tr>
        <td>Tên danh mục:</td>
        <td><asp:TextBox runat="server" ID = "txtCatName" Width="200px"></asp:TextBox></td>
    </tr>
    <tr>
        <td colspan="2" >
        <asp:Button runat="server" ID = "btnUpdate" onclick="btnUpdate_Click" Text = "Cập nhật" />
<asp:Button runat="server" ID = "btnAdd" onclick="btnAdd_Click" Text = "Thêm mới" />
<asp:Button runat="server" ID = "btnList"  Text = "Trở về" 
    onclick="btnList_Click" />
        </td>
    </tr>
</table>